package top.eggcode.system.client.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * Title: 操作日志
 * Description: TODO
 * Date: 2021/5/25 14:59
 *
 * @author JiaQi Ding
 * @version 1.0
 */
@Data
public class ActionLog implements Serializable {

    /**
     * 保证序列化兼容性
     */
    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    private String id;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("网络路径")
    private String uri;

    @ApiModelProperty("操作名称")
    private String name;

    @ApiModelProperty("方法")
    private String method;

    @ApiModelProperty("参数列表")
    private String params;

    @ApiModelProperty("用时")
    private Long timeSpent;

    @ApiModelProperty("来源页面")
    private String referrer;

    @ApiModelProperty("会话令牌")
    private String sessionToken;

    @ApiModelProperty("用户代理")
    private String userAgent;

    @ApiModelProperty("服务器IP")
    private String host;

    @ApiModelProperty("响应值")
    private String result;

    @ApiModelProperty("方法地址")
    private String classMethod;

}
